package com.ruoyi.function.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * -- 聊天记录对象 chat_record
 * 
 * @author ruoyi
 * @date 2025-03-26
 */
public class ChatRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    private String id;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private Long senderId;

    /** 接收者ID */
    @Excel(name = "接收者ID")
    private String receiverId;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String messageContent;

    /** 消息类型 0-文本 1-图片 2-文件 */
    @Excel(name = "消息类型 0-文本 1-图片 2-文件")
    private String messageType;

    /**  */
    @Excel(name = "是否读取（0：未读，1：已读）")
    private String isRead;

    /** 发送信息者的数据 */
    @Excel(name = "发送信息者的数据")
    private String self;

    /** 接收信息者的数据 */
    @Excel(name = "接收信息者的数据")
    private String target;

    /** 接收信息者的数据 */
    @Excel(name = "用户类型 2：技师 3：车间")
    private String userType;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setSenderId(Long senderId) 
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }

    public void setReceiverId(String receiverId) 
    {
        this.receiverId = receiverId;
    }

    public String getReceiverId() 
    {
        return receiverId;
    }

    public void setMessageContent(String messageContent) 
    {
        this.messageContent = messageContent;
    }

    public String getMessageContent() 
    {
        return messageContent;
    }

    public void setMessageType(String messageType) 
    {
        this.messageType = messageType;
    }

    public String getMessageType() 
    {
        return messageType;
    }

    public void setIsRead(String isRead) 
    {
        this.isRead = isRead;
    }

    public String getIsRead() 
    {
        return isRead;
    }

    public void setSelf(String self) 
    {
        this.self = self;
    }

    public String getSelf() 
    {
        return self;
    }

    public void setTarget(String target) 
    {
        this.target = target;
    }

    public String getTarget() 
    {
        return target;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("senderId", getSenderId())
            .append("receiverId", getReceiverId())
            .append("messageContent", getMessageContent())
            .append("messageType", getMessageType())
            .append("isRead", getIsRead())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("self", getSelf())
            .append("target", getTarget())
            .toString();
    }
}
